import LoginStore from "./Login.Store";
import UserStore from "./User.Store";
import ChannelStore from "./channel.Store";
import React from "react";

class RootStore {
  constructor() {
    this.LoginStore = new LoginStore();
    this.UserStore = new UserStore()
    this.ChannelStore = new ChannelStore()
  }
}

const rootStore = new RootStore();
const context = React.createContext(rootStore);

const useStore = () => React.useContext(context);

export { useStore };
